package com.glory.eapequipmentmonitor.adapter;

import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.glory.eapequipmentmonitor.R;
import com.glory.eapequipmentmonitor.bean.ThingBean;

import java.util.List;


public class ThingListAdapter extends BaseQuickAdapter<ThingBean, BaseViewHolder> {

    public ThingListAdapter(@Nullable List<ThingBean> data) {
        super(R.layout.adapter_thing_list, data);
    }


    @Override
    protected void convert(BaseViewHolder helper, final ThingBean item) {
        helper.setText(R.id.tvSeq, item.getSEQNO());
        helper.setText(R.id.tvCode, item.getMATCODE());
        helper.setText(R.id.tvId, item.getMLOTID());
    }
}
